﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NhomSanPhamList.ascx.cs"
    Inherits="NhomSanPhamList" %>
<div class="MainFilter" runat="server" >
    <span class="headertext">Thể loại chuyên mục :</span>
    <asp:DropDownList ID="cmbTheLoaiChuyenMuc" runat="server" Width="112px" AutoPostBack="True"
        OnSelectedIndexChanged="cmbTheLoaiChuyenMuc_SelectedIndexChanged">
        <asp:ListItem Text="Sản phẩm" Value="1" Selected="True"></asp:ListItem>
        <asp:ListItem Text="Album hình ảnh" Value="2"></asp:ListItem>
        <asp:ListItem Text="Bài viết" Value="3"></asp:ListItem>
        <asp:ListItem Text="Color" Value="4"></asp:ListItem>
    </asp:DropDownList>
</div>
<asp:Repeater runat="server" ID="rptCate">
    <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" width="100%" class="adminlist" style="font-size: small;
            border-collapse: collapse;" border="1">
            <tbody>
                <tr>
                    <th style="width: 20px;">
                        <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                    </th>
                    <th style="width: 300px;">
                        Tên chuyên mục
                    </th>
                    <th style="width: 70px;">
                        Trạng thái
                    </th>
                    <th style="width: 70px;" valign="middle">
                        Vị trí <a href="#" onclick="SubmitTask(0,'saveorder')" title="Lưu vị trí" class="item-saveorder"></a>
                    </th>                   
                    <th>
                        Mô tả
                    </th>
                    <th style="width: 30px;">
                        ID
                    </th>                       
                </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="row0">
            <td align="center">
                <input id="chkCate" type="checkbox" runat="server" title='<%# Eval("CategoryID") %>' value='<%# "?mod=" +  WebComponents.ConvertType.Encode(this.AddModule) + "&id=" + Eval("CategoryID") %>'/>
            </td>
            <td>
                <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=vi">
                    <%# Eval("NameVi") %>
                </a>
            </td>
            <td align="center">
                <a href="#" onclick="SubmitTask(<%# Eval("CategoryID")  %>,'changestatus')" class="<%# (Eval("IsActive").ToString()=="True")? "item-publish": "item-unpublish" %>"
                    title="<%# (Eval("IsActive").ToString()=="True")? "Ẩn": "Hiển thị" %>"></a>
            </td>    
             <td align="center"> <a href="#" onclick="SubmitTask(<%# Eval("CategoryID")  %>,'moveup')" class="item-moveup" title="Chuyển lên trên"></a><a href="#" class="item-movedown" onclick="SubmitTask(<%# Eval("CategoryID")  %>,'movedown')" title="Chuyển xuống dưới">
                </a>
                <asp:TextBox ID="txtOrder" runat="server" Text='<%# Eval("OrderId") %>' Width="20px"
                    Style="text-align: right;"></asp:TextBox>
            </td>      
            <td align="left">
                <%# Eval("DescriptionVi")%>
            </td>
            <td align="center">
                <%# Eval("CategoryID") %>
            </td>
            
        </tr>        
    </ItemTemplate>
    <AlternatingItemTemplate>
        <tr class="row1">
            <td align="center">
                <input id="chkCate" type="checkbox" runat="server" title='<%# Eval("CategoryID") %>' value='<%# "?mod=" +  WebComponents.ConvertType.Encode(this.AddModule) + "&id=" + Eval("CategoryID") %>'/>
            </td>
            <td>
                <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=vi">
                    <%# Eval("NameVi") %>
                </a>
            </td>
            <td align="center">
                <a href="#" onclick="SubmitTask(<%# Eval("CategoryID")  %>,'changestatus')" class="<%# (Eval("IsActive").ToString()=="True")? "item-publish": "item-unpublish" %>"
                    title="<%# (Eval("IsActive").ToString()=="True")? "Ẩn": "Hiển thị" %>"></a>
            </td>
           <td align="center"> <a href="#" onclick="SubmitTask(<%# Eval("CategoryID")  %>,'moveup')" class="item-moveup" title="Chuyển lên trên"></a><a href="#" class="item-movedown" onclick="SubmitTask(<%# Eval("CategoryID")  %>,'movedown')" title="Chuyển xuống dưới">
                </a>
                        <asp:TextBox ID="txtOrder" runat="server" Text='<%# Eval("OrderId") %>' Width="20px"
                    Style="text-align: right;"></asp:TextBox>
                    </td>
            <td align="left">
                <%# Eval("DescriptionVi")%>
            </td>
            <td align="center">
                <%# Eval("CategoryID") %>
            </td>             
        </tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
        </tbody> </table></FooterTemplate>
</asp:Repeater>
